package jp.co.sapporobeer.FMCOutgoing;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
import android.widget.LinearLayout;

public class SplushActivity extends Activity implements AnimationListener {
	 /** Called when the activity is first created. */
	 @Override
	 public void onCreate(Bundle savedInstanceState) {
	 super.onCreate(savedInstanceState);
	 setContentView(R.layout.disconnect_splush);
	 splashAnimation();
	 }
	 private void splashAnimation(){
	 AlphaAnimation alphaanime = new AlphaAnimation(1, 0);
	 alphaanime.setStartOffset(2000);
	 alphaanime.setDuration(1000);
	 alphaanime.setFillAfter(true);
	 alphaanime.setAnimationListener(this);
	 LinearLayout linear = (LinearLayout)findViewById(R.id.splushLinear);
	 linear.startAnimation(alphaanime);
	 }

	 @Override
	 public void onAnimationEnd(Animation animation) {
	 // TODO Auto-generated method stub
	 LinearLayout linear = (LinearLayout)findViewById(R.id.splushLinear);
	 linear.setVisibility(View.GONE);
	 }

	 @Override
	 public void onAnimationRepeat(Animation animation) {
	 // TODO Auto-generated method stub

	 }

	 @Override
	 public void onAnimationStart(Animation animation) {
	 // TODO Auto-generated method stub

	 }

	}
